Skip to content

Probe SearXNG instances at / instead of running a search - #15

Merged
19-84 merged 1 commit into
mainfrom
searxng-test-url
Aug 23, 2026
Merged

19-84 merged 1 commit into
mainfrom
searxng-test-url

Conversation

@19-84

@19-84 19-84 commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Follow-up to #14. That PR restored SearXNG's instance list (0 → 39), but only 2 of the 39 survived the health check. This is why.

The problem

SearXNG ships a bot limiter that rejects search requests which don't look like they came from a browser. Our health check requested /search?q=current+weather, so 28 of 39 instances answered HTTP 429 and were pruned as dead — even though they serve users fine, because a real browser sends the headers and cookies the limiter wants.

Measured across all 39 instances using the probe's own User-Agent:

endpoint 200 responses
GET / 38 / 39
GET /search?q=current+weather 6 / 39

Failure breakdown on /search: 28× 429, 2× 418, 2× 403, 1× 202.

Probing the root page asks the question we actually care about — is this instance up and serving — without tripping bot detection that never applies to the users we redirect to it.

This is a narrower instance of exactly what upstream cited when archiving. The difference is that here it's fixable: the challenge isn't on the page users land on, it's on the endpoint we chose to poke.

Result

before after
searxng healthy 2 / 39 37 / 39
whole-app live instances 59 95

Anti-bot detection still does its job — isBlockPage inspects the response body, and it still flags an Anubis-walled instance on the root probe. The remaining two failures are one 403 and one genuine Anubis wall.

Scope

Only searxng's test_url changes. whoogle, librey and tent still probe a search endpoint; whether they have the same problem hasn't been measured, so I left them alone rather than guessing.

The diff is one line per file — the JSON formatting is byte-identical otherwise.

🤖 Generated with Claude Code

https://claude.ai/code/session_017RU5GnqJo2CsjM4zoPX5jv

SearXNG ships a bot limiter that rejects search requests which do not look
like they came from a browser. Our health check requested
/search?q=current+weather, so 28 of 39 instances answered HTTP 429 and were
pruned as dead -- even though they serve users fine, because a real browser
sends the headers and cookies the limiter wants.

Measured across all 39 instances with the probe's own User-Agent:

  GET /                200 on 38/39
  GET /search?q=...    200 on  6/39

Probing the root page asks the question we actually care about -- is this
instance up and serving -- without tripping bot detection that never applies
to the users we redirect. Anti-bot detection still applies: isBlockPage
inspects the body, and it still flags an Anubis-walled instance on the root
probe.

searxng goes from 2/39 to 37/39 healthy, and the whole-app live instance
count from 59 to 95.

Only searxng's test_url is changed. whoogle, librey and tent still probe a
search endpoint; whether they have the same problem has not been measured.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RU5GnqJo2CsjM4zoPX5jv
@19-84
19-84 merged commit 9e8df0e into main Aug 23, 2026
12 checks passed
@19-84
19-84 deleted the searxng-test-url branch August 23, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant